package third.lib.common.logger;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import third.lib.common.config.ThirdLibConfig;

@Component
public class ThirdLogger {
    private final Logger logger = LoggerFactory.getLogger(ThirdLogger.class);
    @Autowired
    ThirdLibConfig config;

    public void info(String info){
        if(config.getPrintEnable()){
            logger.info(info);
        }
    }
}
